///////////////////////////////////////
//    Autor: Mato Kormuth              //
//    (C) Mato Programs 2011        //
//////////////////////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Marble_Blast_Mods_Creator
{
    public partial class AboutDialog : Form
    {
        public AboutDialog()
        {
            InitializeComponent();
        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (checkBox1.Checked == true)
            {
                MBMCSettings.Default.aboutboxatstartup = false;
                MBMCSettings.Default.Save();
                MBMCSettings.Default.Upgrade();
            }
            else
            {
                MBMCSettings.Default.aboutboxatstartup = true;
                MBMCSettings.Default.Save();
                MBMCSettings.Default.Upgrade();
            }
        }

        private void AboutDialog_Load(object sender, EventArgs e)
        {
            if (MBMCSettings.Default.aboutboxatstartup == false)
            {
                checkBox1.Checked = true;
            }
            else
            {
                checkBox1.Checked = false;
            }
        }
    }
}